<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/18
 * Time: 21:44
 */

namespace app\api\model;

class Image extends BaseModel
{
    protected $hidden = ['id', 'update_time', 'delete_time', 'create_time', 'from'];
    //tp5的读取器
    public function getUrlAttr($value, $data)
    {
        return $this -> getImgPrefix($value, $data);
    }
}